import unittest
from base.base_page import BasePage


class CardScanPage(BasePage, unittest.TestCase):
    def scan_now_btn(self):
        return self.by_uiautomator('new UiSelector().text("立即制作")').click()

    def single_card(self):
        return self.by_uiautomator('new UiSelector().text("单卡证")').click()

    def card_identity(self):
        return self.by_uiautomator('new UiSelector().text("身份证")').click()

    def card_band(self):
        return self.by_uiautomator('new UiSelector().text("银行卡")').click()

    def card_household(self):
        return self.by_uiautomator('new UiSelector().text("户口本")').click()

    def card_household_2(self):
        return self.by_uiautomator('new UiSelector().text("户口本(拼两页)")').click()

    def card_driving_licence(self):
        return self.by_uiautomator('new UiSelector().text("驾照")').click()

    def card_permit(self):
        return self.by_uiautomator('new UiSelector().text("行驶证")').click()

    # 相册按钮
    def photo_album_import_btn(self):
        return self.by_id(self.HW_ENV + 'image_open_gallery2').click()

    def water_marking(self):
        return self.by_uiautomator('new UiSelector().text("水印")').click()



